package ModelLayer;
/**
 * Write a description of class Copy here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Copy
{
    // instance variables - replace the example below with your own
    private long serialNumber;
    private String purchaseDate;
    private double purchasePrice;
    private boolean availability;

    /**
     * Constructor for objects of class Copy
     */
    public Copy()
    {
        // initialise instance variables
        serialNumber = 0;
        purchaseDate = "";
        purchasePrice = 0.0;
        availability = true;
    }
    
    public Copy(long _serialNumber, String _purchaseDate, double _purchasePrice, boolean _availability)
    {
        serialNumber = _serialNumber;
        purchaseDate = _purchaseDate;
        purchasePrice = _purchasePrice;
        availability = _availability;
    }
    
    /**
     * An example of a method - replace this comment with your own
     * 
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y 
     */
    public void setSerialNumber(long _serialNumber)
    {
        // put your code here
        serialNumber = _serialNumber;
    }

    public long getSerialNumber()
    {
        return serialNumber;
    }
    
    public void setPurchaseDate(String _purchaseDate)
    {
        purchaseDate = _purchaseDate;
    }
    
    public String getPurchaseDate()
    {
        return purchaseDate;
    }
    
    public void setPurchasePrice(double _purchasePrice)
    {
        purchasePrice = _purchasePrice;
    }
    
    public double getPurchasePrice()
    {
        return purchasePrice;
    }
    
    public void setAvailability(boolean _availability)
    {
        availability = _availability;
    }
    
    public boolean getAvailability()
    {
        return availability;
    }
}